/*
 * @Author: bear
 * @Date: 2022-09-07 10:59:20
 * @LastEditors: bear
 * @LastEditTime: 2022-09-07 14:56:03
 * @Description: your project
 * @version: 1.0
 */
const userLogin = (ctx,next) => {
 const { username, password } = ctx.request.query // 从上下文的 request 对象中获取
 if(username == 'bear' && password == '123'){
     ctx.body = `获取登录信息======用户名:${username};密码:${password}`
 }else{
     ctx.body = `获取登录信息======用户名:${username};密码:${password} == 登录失败`
 }
}
// node不支持import
// export { userLogin }
module.exports = userLogin